<div class="page-header">
	<h1>配置文件&nbsp;<small>Config</small></h1>
    <p class="well"></p>
</div>
            <section>
            	<pre class="prettyprint linenums">{literal}
#file:/APP_ID/conf/config.ini
[config]
#此节需定义应用信息
app_id = "##########"
app_code = "######"
access_secret_key = "################################################################"
template_extension = ".html"
default_uri = "http://localhost:84"
index = "index.html"

[define]
#此节可定义自定义常量
DOMAIN = "http://localhost:84"

DOMAIN_PREFIX = "/^http:\/\/localhost:84"

[matching_rules]
#0.为默认页面,此处为登录
0.uri = "{DOMAIN_PREFIX}\/api\/login$/"
0.method = "HTTP_POST"
0.data_type = "json"
0.template = "login_check.html"

#访问首页面并获取用户名信息
1.uri = "{DOMAIN_PREFIX}\/dashboard$/"
1.method = "HTTP_GET"
1.data_type = "html"
1.vars.name = ".navbar-fixed-top a.dropdown-toggle"
1.template = "dashboard.html"
                {/literal}</pre>
            </section>
<div id="manual-pagination" class="btn-group">
	<a class="btn" href="/manual/development/fetch">&laquo;&nbsp;抓取页面请求</a>
    <a class="btn" href="/manual/development/template">编写模板&nbsp;&raquo;</a>
</div>